<script type="text/javascript">
/*
document.write('<table border="2">');
//loop for rows
for(var i=0;i<10;i++){
	document.write('<tr><td>'+i+'</td></tr>');
}
document.write('</table>');
*/
/*
document.write('<table border="2" width="20">');
document.write('<tr>');
//loop for columns
for(var i=0;i<5;i++){
	document.write('<td>'+i+'</td>');
}
document.write('</tr>');
document.write('</table>');
*/

//table with 3rows and 4columns
document.write('<table border="2" width="20">');
//loop for rows
for(var i=0;i<3;i++){
	document.write('<tr>');
	//loop for columns
	for(var j=0;j<4;j++){
		document.write('<td>hello</td>');
	}
	document.write('</tr>');
}
document.write('</table>');

</script>